package com.zhigh.test.testuinit.sty.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.util.List;

@Data
@NoArgsConstructor
public class Customer {
    public String name;
    @Min(0)
    @Max(70)
    public Integer age;

    public Boolean gender;

    @Email
    public String email;
    @Size(min = 2, max = 3)
    public List<Order> orders;
}
